package com.jhgk.jhcee.app.controller;

import com.github.pagehelper.PageInfo;
import com.jhgk.jhcee.app.domain.model.MSchoolRecruitProvinceYearBatchSubjetMajorHistoryModel;
import com.jhgk.jhcee.app.service.MSchoolRecruitProvinceYearBatchSubjectMajorHistoryService;
import com.jhgk.jhcee.common.resultful.PageResultful;
import com.jhgk.jhcee.jhgk.model.MSchoolRecruitProvinceYearBatchSubjetMajorHistory;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/13 14:48.
 */
@RestController
@RequestMapping("/majorAdmissionPlan")
@Api(value = "专业招生计划",tags = {"专业招生计划"})
public class MSchoolRecruitProvinceYearBatchSubjectMajorHistoryController {

    @Resource(name = "MSchoolRecruitProvinceYearBatchSubjectMajorHistoryServiceImpl")
    MSchoolRecruitProvinceYearBatchSubjectMajorHistoryService mSchoolRecruitProvinceYearBatchSubjectMajorHistoryService;

    @PostMapping("/searchAllPage")
    @ApiOperation("分页查询")
    public PageResultful<PageInfo<MSchoolRecruitProvinceYearBatchSubjetMajorHistory>> searchAllPage(@RequestBody @Validated MSchoolRecruitProvinceYearBatchSubjetMajorHistoryModel model) {
        return mSchoolRecruitProvinceYearBatchSubjectMajorHistoryService.searchAllPage(model);
    }
}
